package com.common.util;

import java.util.regex.Pattern;

/**
 * @author 大忽悠
 * @create 2022/11/16 9:52
 */
public class PatternUtil {
    public static final String EMAIL_PATTERN ="^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";

    public static Boolean matches(String regex,String target){
        return Pattern.compile(regex).matcher(target).matches();
    }
}
